﻿// --------------------------------------------------------------------------------------------------------------------
// <copyright file="Permission.cs" company="Anton Frattaroli">
//   Copyright (c) Anton Frattaroli. All rights reserved.
// </copyright>
// <summary>
//   Defines the Permission class.
// </summary>
// --------------------------------------------------------------------------------------------------------------------
namespace Lidocaine.BusinessObjects
{
    /// <summary>
    /// Defines the Permission class.
    /// </summary>
    public class Permission
    {
        /// <summary>
        /// The permission identifier.
        /// </summary>
        public int Id { get; set; }

        /// <summary>
        /// Gets or sets the role's database identity field.
        /// </summary>
        public int AllowId { get; set; }

        /// <summary>
        /// Gets or sets the role's database identity field.
        /// </summary>
        public PermissionAllowType AllowType { get; set; }

        /// <summary>
        /// Gets or sets the role's database identity field.
        /// </summary>
        public bool IsActiveDirectoryRole { get; set; }

        /// <summary>
        /// Gets or sets the role's name.
        /// </summary>
        public string Name { get; set; }
    }
}